home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000017_icon-group-sender _Mon Jul 10 13:31:34 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA04115
  4.     for icon-group-addresses; Mon, 10 Jul 2000 13:31:03 -0700 (MST)
  5. Message-Id: <200007102031.NAA04115@baskerville.CS.Arizona.EDU>
  6. To: gep2@terabites.com, icon-group@optima.CS.Arizona.EDU,
  7.         "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
  8. From: "Alexandre E. Kopilovitch" <aek@vib.usr.pu.ru>
  9. Date: Mon, 10 Jul 2000 20:22:36 +0400 (MSD)
  10. Subject: Re: Error messages
  11. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  12. Status: RO
  13. Content-Length: 1574
  14.  
  15. "Richard A. O'Keefe" <ok@atlas.otago.ac.nz> wrote:
  16. >Seriously, the two big differences between Icon and Prolog here are
  17. > - Icon has assignment statements, Prolog doesn't.
  18. > - Icon looks a lot like C, Prolog doesn't.
  19. >
  20. >    It's the other areas surrounding the project where the real
  21. >    benefits show up.
  22.  
  23. Icon vs. Prolog:
  24.  
  25. 1. Notation matters.
  26.  
  27. Suppose that you have to show your Icon program to another person that have
  28. no slightest idea about the Icon and Snobol. Surely you will have serious
  29. difficulties trying to explain Icon syntax to a novice. At the same time,
  30. in a similar situation with a Prolog program you will feel yourself much
  31. better (if you were restricting yourself to the "pure Prolog", i.e. if you
  32. did not use "clever" built-in predicates).
  33.  
  34. 2. Lie backfires.
  35.  
  36. The Prolog predicates generally aren't the predicates in the mathematical
  37. sense -- in fact, they produce not simply sets, but the ordered sets, and
  38. a Prolog program often depends heavily on that ordering. On the contrary,
  39. Icon use the proper name - the generators. So, Prolog tries to hide the true
  40. nature of its major entity, while Icon exhibits it in its full power.
  41.  
  42. 3. Conclusion.
  43.  
  44. If your program deals mostly with a "static" structures, i.e. unordered sets,
  45. then Prolog has evident advantages, especially for reviewing and maintenance.
  46. If your program is heavily "dynamic", i.e. deals with the ordered sets, then
  47. Icon may have significant advantages, especially if the complicated ordering
  48. are needed.
  49.  
  50.  
  51. Alexander Kopilovitch                      aek@vib.usr.pu.ru
  52. Saint-Petersburg
  53. Russia
  54.  
  55.